package com.example.demo.dao;

import com.example.demo.model.InquiryParts;
import com.example.demo.model.InquirySupplier;
import com.example.demo.model.InquiryTotal;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created by zkq19 on 2018/7/2.
 */

@Mapper
public interface InquiryMapper {
    List<InquiryParts> quryPartsByCode( List<String> partsCode);

    List<InquirySupplier> qurySuppliersByCode(List<String> supplierCodeList);

    List<InquiryParts> quryPartsBySupplierCode(List<String> supplierCodeList);
    @Delete("delete from inquiryparts where id = ${id}")
    int deletePartsById(Integer id);

    int save(InquiryTotal inquiryTotal);

    int saveIquiryParts(List<InquiryParts> inquiryParts);

    int saveIquirySupplier(List<InquirySupplier> inquirySuppliers);
}
